package com.cedarhd.finance.log.domain.repository;

import com.cedarhd.finance.log.domain.entity.ErrorLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2018/3/6.
 */
@Repository
public interface ErrorLogRepository extends JpaRepository<ErrorLog,Integer>{
    /**
     * 复合条件的分页查询
     * @param spec
     * @param page
     * @return
     */
    Page<ErrorLog> findAll(Specification<ErrorLog> spec, Pageable page);
}
